package com.zkthink.ceres.applet.order.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**

@Author cmz
@Date 2024-04-30 9:33
*/
@Data
@TableName(value = "applet_product_order")
public class AppletProductOrder {
    /**
     * 产品订单表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "mid")
    private Long mid;

    /**
     * 产品id
     */
    @TableField(value = "product_id")
    private Long productId;

    /**
     * 所患疾病
     */
    @TableField(value = "diseases_suffered")
    private String diseasesSuffered;

    /**
     * 患病时间
     */
    @TableField(value = "illness_time")
    private Date illnessTime;

    /**
     * 支付方式1.微信支付  2.余额支付
     */
    @TableField(value = "pay_channel")
    private Integer payChannel;

    /**
     * 支付状态:1.未支付 2.已支付 3.已取消
     */
    @TableField(value = "pay_status")
    private Integer payStatus;

    /**
     * 产品订单状态 1.待选择 2.待收货 3.已收货 4.已评论
     */
    @TableField(value = "product_status")
    private Integer productStatus;

    /**
     * 配送方式 0-快递配送 1-车辆取货 2-门店取货
     */
    @TableField(value = "delivery_method")
    private Integer deliveryMethod;

    /**
     * 地址id 用户的地址信息(ceres_member_address )
     */
    @TableField(value = "address_id")
    private Long addressId;

    /**
     * 选择快递配送保存快递单号
     */
    @TableField(value = "express_no")
    private String expressNo;

    /**
     * 快递发货时间
     */
    @TableField(value = "delivery_time")
    private Date deliveryTime;

    /**
     * 店铺id
     */
    @TableField(value = "store_id")
    private Long storeId;

    /**
     * 理疗车id
     */
    @TableField(value = "vehicles_id")
    private Long vehiclesId;

//    private String storeName;
//
//    private String  licensePlate;

    /**
     * 订单码
     */
    @TableField(value = "order_code")
    private String orderCode;

    /**
     * 二维码
     */
    @TableField(value = "code_url")
    private String codeUrl;

    /**
     * 备注
     */
    @TableField(value = "order_ramark")
    private String orderRamark;

    /**
     * 总金额
     */
    @TableField(value = "costs")
    private BigDecimal costs;

    /**
     * 支付金额
     */
    @TableField(value = "pay_sum")
    private BigDecimal paySum;

    /**
     * 消费金额
     */
    @TableField(value = "coupons")
    private BigDecimal coupons;
    

    /**
     * 付款时间
     */
    @TableField(value = "pay_time")
    private Date payTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    private String createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 最后修改人
     */
    @TableField(value = "update_user")
    private String updateUser;

    /**
     * 最后修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 逻辑删除 1-删除 0-未删除
     */
    @TableField(value = "is_delete")
    @TableLogic(value = "0",delval = "1")
    private Integer isDelete;

    /**
     * 预支付id
     */
    @TableField(value = "prepay_id")
    private String prepayId;

    /**
     * 支付单号
     */
    @TableField(value = "pay_num")
    private String payNum;


    @TableField(value = "cut_amount")
    private BigDecimal cutAmount;

    public static final String COL_ID = "id";

    public static final String COL_MID = "mid";

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_DISEASES_SUFFERED = "diseases_suffered";

    public static final String COL_ILLNESS_TIME = "illness_time";

    public static final String COL_PAY_CHANNEL = "pay_channel";

    public static final String COL_PAY_STATUS = "pay_status";

    public static final String COL_PRODUCT_STATUS = "product_status";

    public static final String COL_DELIVERY_METHOD = "delivery_method";

    public static final String COL_ADDRESS_ID = "address_id";

    public static final String COL_EXPRESS_NO = "express_no";

    public static final String COL_DELIVERY_TIME = "delivery_time";

    public static final String COL_STORE_ID = "store_id";

    public static final String COL_VEHICLES_ID = "vehicles_id";

    public static final String COL_ORDER_CODE = "order_code";

    public static final String COL_ORDER_RAMARK = "order_ramark";

    public static final String COL_COSTS = "costs";

    public static final String COL_PAY_TIME = "pay_time";

    public static final String COL_CREATE_USER = "create_user";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_USER = "update_user";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_IS_DELETE = "is_delete";
}